package co.jp.roomy;

import co.jp.roomy.vo.Heya;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class MainMenuActivity extends Activity {
	
	private String[] myHeyaList = {"徹子のお部屋", "隠し部屋", "じゃぽね", "X"};
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main_menu);
	}
	/**
	 * 部屋新規作成ボタンを押下時
	 */
	public void heyaAddButtonOnClick(View view) {
		Intent intent = new Intent(this, HeyaAddActivity.class);
		Heya heya = new Heya();
		intent.putExtra(MainMenuActivity.this.getString(R.string.heyaKey), heya);
		startActivity(intent);
	}
	/**
	 * 部屋一覧ボタンを押下時
	 */
	public void heyaSelectButtonOnClick(View view) {
		Intent intent = new Intent(this, HeyaListActivity.class);
		intent.putExtra(this.getString(R.string.my_heya_list_key), myHeyaList);
		startActivity(intent);
	}
	/**
	 * 設定ボタンを押下時
	 */
	public void settingButtonOnClick(View view) {
		Intent intent = new Intent(this, SettingActivity.class);
		startActivity(intent);
	}
}